import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-news',
  templateUrl: './news.component.html',
  styleUrls: ['./news.component.scss']
})
export class NewsComponent implements OnInit {


  public items: object[] = [
    {
      title: '宝马',
      body: [
        {
          name: "宝马x1",
          pie: "30万"
        },
        {
          name: "宝马x2",
          pie: "50万"
        },
        {
          name: "宝马x3",
          pie: "100万"
        }
      ]
    },
    {
      title: '奥迪',
      body: [
        {
          name: "奥迪A6",
          pie: "30万"
        },
        {
          name: "奥迪A7",
          pie: "50万"
        },
        {
          name: "奥迪A8",
          pie: "100万"
        }]
    },
    {
      title: '奔驰',
      body: [
        {
          name: "奔驰g1",
          pie: "30万"
        },
        {
          name: "奔驰g2",
          pie: "50万"
        },
        {
          name: "奔驰g3",
          pie: "100万"
        }
      ]
    }

  ]

  constructor() { }

  ngOnInit() {
  }

}
